@import "../../assets/styles/common.scss";
.main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    .header {
        display: flex;
        flex-direction: row;
        background-color: #f63;
        box-sizing: border-box;
        padding: px2rem(8) px2rem(5);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        color: #fff;
        z-index: 9999;
        .location {
            flex: 0 0 px2rem(60);
            @include center;
            font-size: px2rem(14);
            padding: 0 px2rem(10);
            .van-icon {
                margin-left: px2rem(5);
                font-size: px2rem(18);
                font-weight: 400;
                margin-top: -2px;
            }
        }
        .search {
            flex: 1;
            @include center;
            padding: 0 10px;

            .search-box {
                display: flex;
                flex-direction: row;
                width: 100%;
                height: px2rem(30);
                background: #fff;
                border-radius: px2rem(40);

                .van-icon-search {
                    height: px2rem(30);
                    display: flex;
                    align-items: center;
                    padding-left: px2rem(10);
                    color: #f63;
                    flex: 0 0 30px;
                }
                .keywork {
                    display: flex;
                    align-items: center;
                    color: #ccc;
                    flex: 1;
                    margin-left: px2rem(5);
                }
            }
        }
        .tools {
            @include center;
            flex: 0 0 px2rem(40);
            font-size: px2rem(18);
            font-weight: 900;
            margin-top: -6px;
        }
    }

    .body-wrapper {
        margin-top: px2rem(45);

        .banner {
            .van-swipe {
                height: px2rem(120);
            }
            .van-swipe-item {
                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .nav {
            display: flex;
            flex-direction: column;
            .nav-items {
                display: flex;
                flex-direction: row;
                width: 100%;
                padding: px2rem(10) px2rem(10);
                background: #fff;
                &:nth-child(1) {
                    padding-top: px2rem(10);
                }

                .item {
                    display: flex;
                    flex-direction: column;
                    flex: 1;
                    .icon {
                        @include center;
                        padding: px2rem(5) px2rem(10);
                        .icon-box {
                            border-radius: 50%;
                            width: px2rem(50);
                            height: px2rem(50);
                            @include center;

                            img {
                                width: 100%;
                                height: 100%;
                            }
                            .van-icon {
                                @include center;
                                font-size: px2rem(18);
                                color: #fff;
                            }
                        }
                        .van-icon {
                            font-size: px2rem(18);
                        }
                    }
                    .text {
                        @include center;
                        color: #555;
                        font-size: px2rem(10);
                    }
                }
            }
        }

        .hot {
            padding: px2rem(10);
            background: #fff;
            margin-top: px2rem(10);
            .item {
                display: flex;
                flex: row;
                .box {
                    flex: 1;
                    width: 100%;
                    height: px2rem(110);
                    margin: px2rem(2);
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }

        .goods-wrapper {
            padding: 0 px2rem(15);
            background: #fff;
            margin-top: px2rem(10);

            .title {
                @include center;
                height: px2rem(45);
                border-bottom: px2rem(1) solid #ddd8ce;
            }

            .goods-card-items {
                display: flex;
                flex-direction: column;
                border-bottom: px2rem(1) solid #ddd8ce;

                &:last-child {
                    border-bottom: 0;
                }

                .goods-card-item {
                    display: flex;
                    margin: px2rem(10) 0;
                    .thumb {
                        display: flex;
                        flex: 0 0 px2rem(120);
                        img {
                            border-radius: px2rem(3);
                            width: 100%;
                            height: 100%;
                            height: px2rem(120);
                        }
                    }
                    .goods-info {
                        display: flex;
                        flex-direction: column;
                        margin-left: px2rem(10);
                        .brand {
                            font-weight: 400;
                            font-size: px2rem(16);
                            margin-bottom: px2rem(5);
                            .van-ellipsis {
                                max-width: px2rem(220);
                            }
                        }
                        .desc {
                            color: #999;
                            word-wrap: break-word;
                            margin-bottom: px2rem(5);
                        }
                        .goods-price {
                            color: #999;
                            display: flex;
                            justify-content: space-between;
                            .price-box {
                                display: flex;
                                align-items: flex-end;
                                .price {
                                    display: flex;
                                    align-items: flex-end;
                                    font-size: px2rem(16);
                                    color: #f63;
                                    font-weight: 900;
                                    span.up {
                                        font-size: px2rem(12);
                                        color: #999;
                                        font-weight: normal;
                                        margin-left: px2rem(3);
                                    }
                                }
                                .origin {
                                    font-size: px2rem(12);
                                    margin-left: px2rem(5);
                                }
                            }
                            .sales {
                                font-size: px2rem(12);
                                display: flex;
                                align-items: flex-end;
                            }
                        }
                    }
                }
            }
        }
    }
}
